import { _decorator, Component, game, log, Node } from 'cc';
import { EBundleName, gg } from './Game';
import { UIManager } from '../extensions/cocos-scaffold-3x/assets/manger/UIManager';
const { ccclass, property } = _decorator;
@ccclass('MainScene')
export class MainScene extends Component {
    start() {
        // game.frameRate=61

        console.log('MainScene', gg);
        gg.initialize().then(() => {
            log('initialize success');
            gg.mgr(UIManager).openView("gameplay/ViewGameplay", { bundleName: EBundleName.subBundle })
            // gg.mgr(UIManager).openView("joker/ViewJoker", { bundleName: EBundleName.subBundle })
        });

    }

    update(deltaTime: number) {

    }
}

